package com.bifang.module.file.dao.service.impl;

import com.bifang.module.file.dao.service.FileMetadataService;
import com.bifang.module.file.dao.model.FileMetadata;
import com.bifang.module.file.dao.mapper.FileMetadataMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * 文件元数据 服务实现类
 *
 * @author chenzh
 * @since 2021-01-27
 */
@Service
public class FileMetadataServiceImpl extends ServiceImpl<FileMetadataMapper, FileMetadata>
        implements FileMetadataService {
    @Override
    public void saveOther(FileMetadata fileMetadata) {
        baseMapper.saveOther(fileMetadata);
    }

    @Override
    public void deleteOtherByFileId(BigDecimal fileId, String tableName) {
        baseMapper.deleteOtherByFileId(fileId,tableName);
    }
}
